home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / doc / p3nfs / bluetooth.linux next >
Text File  |  2005-11-23  |  3KB  |  72 lines

  1. HOWTO enable bluetooth on a linux device in order to get p3nfsd use it.
  2.  
  3.  
  4. 1. Download (and install) the needed software
  5.    - bluez-libs
  6.    - bluez-utils
  7.    Further you need the bluez drivers which are part of any kernel >= 2.4.20.
  8.  
  9. 2. Enable bluetooth on the symbian device in the System Settings.
  10.  
  11. 3. Get the Bluetooth device address of the phone:
  12.    e.g. with hcitool inq. Switch to bluetooth mode in nfsclient (see
  13.    below on how), and remember the rfcomm port. It should be 13.
  14.  
  15. 4. Establish a potential bluetooth connection with rfcomm (as root)
  16.    # rfcomm bind /dev/rfcomm0 <BDADDR> 13
  17.    - You can verify the rfcomm state by calling rfcomm without arguments
  18.    - The last argument (port) must correspond to the number shown by
  19.      nfsclient on the device.
  20.  
  21. 5. Check that /dev/rfcomm0 (or the like, like, see your /dev) exists:
  22.    crw-rw-rw-    1 root     root     216,   0 Jan 26 17:32 /dev/rfcomm0
  23.  
  24.    Note: If you do _NOT_ have devfs/udev/somthing-like-this (where the devices
  25.    will be created as soon as the corresponding driver is loaded), then you
  26.    have to create this file with:
  27.      mknod /dev/rfcomm0 c 216 0
  28.  
  29. 6. First time device connection / Bluetooth PIN
  30.    You may need to enter a pin.
  31.    As entering the pin on the Linux side does not seem to work, I had success
  32.    with the following workaround:
  33.    Change /bin/bluepin to:
  34.      #!/bin/sh
  35.      cat /etc/bluetooth/pin
  36.    and /etc/bluetooth/pin to
  37.      PIN:0000
  38.    Now you can type 0000 on the phone as it requests the PIN.
  39.  
  40. 7. Start nfsapp on the Symbian device and
  41.    switch to bluetooth.
  42.    - Series60: by pressing the joystick (or 'p').
  43.    - UIQ: by scrolling with the jogdial one position down
  44.  
  45. 8. Start p3nfsd with 
  46.    % p3nfsd -series60 -tty /dev/rfcomm0
  47.    or
  48.    % p3nfsd -UIQ -tty /dev/rfcomm0
  49.  
  50.    There is no difference at the moment between these settings as you
  51.    can verify it with:
  52.  
  53.    % p3nfsd -series60 -tty /dev/rfcomm0 -h
  54.      or
  55.    % p3nfsd -UIQ -tty /dev/rfcomm0 -h
  56.  
  57. Shortcuts:
  58.   Series60:
  59.   - Pressing the joystick switches to the next interface.
  60.   - Pressing the right button exits the program
  61.   UIQ:
  62.   - Scrolling one position down: switches the interface
  63.   - Scrolling one position up: debug level is increased
  64.   - Pressing the jogdial: exit
  65.  
  66. General notes:
  67.   - If the bluetooth connection is terminated, than the
  68.     p3nfs daemon will terminate too.
  69.   - The current nfsclient will reopen the bluetooth server port.
  70.   - Parallel operations are not supported well (BUG?), so instead of
  71.     "cp *" try tar, cpio or the like.
  72.